Updated shell script to work with Windows