Strip package statements from scripts to support IDE use case