Improve the invocation of cygpath for cygwin. This fixes bug 40583. Patch contributed by Mark C. Allman <mcallman at allmanpc dot com>.