[#1220] Improve which command: test for file existence on Windows platforms.

TBD