applied Cygwin conditional macro code to allow use of custom path with sort-bed