modifying system commands so it works on windows as well