added support to strip out cygdrive and msys paths on windows. not sure how consistent