fix creation of scripts on win32