The same issue is can be reproduced on Cygwin so re-implement the msys2-specific fix using cygwin_conv_path() instead.