Fix creating ScriptFile from file name