Making the installation script more multi-environment friendly. Tested on cygwin