Fixed script for others os than windows

and added comments