core: cygwin_path only uses cygpath in cygwin [GH-3804]