made script working on windows