Fixed script-related bug on non-Windows systems.