Fix file modes for the script importer.
More documentation on how to use this.