resolve PATHEXT on Windows