update escapeShell function to work on Windows too