Remote file system detection for Cygwin

Addresses #558 on Cygwin by building on the Windows solution in #567. Since it uses ``cygwin_conv_path``, it understands Cygwin mounts and symlinks. This also includes a tiny refactoring so the Windows and Cygwin versions of the function can share code.