Use PathMapper instead of cygpath
Use bash to run script on unix platform