fixes in scripts on windows 8