Fix issues in cygwin where path name might contain space and exename does not contain a path name.