Correctly remove "define" tab/bookmark information from scripts

Follow