Utility: more portable way to find out if a file exists.

Spent TWO HOURS	trying to get this working on MinGW. Aargh.