Cross platform guessWidth()
Correct handling of missing files

Correct handling of non-existing files and directories, new signature of
predicate function.
Merge pull request #2 from davidmz/master

Cross platform guessWidth()