Port changes in put.sh to Windows