Fix the cygwin path conversion using a more reliable method(cygpath).

Using cygpath to convert path to Windows path since cygpath is bundled with cygwin installation and it's designed to use with path conversion between cygwin and Windows.