Bugfix: filenames w/ special characters and permissions

Filenames containing special characters like '%' won't stat correctly
because they've already been sanitized and the current working directory could
potentially be off.
'make test' runs tests now...
Merge pull request #547 from cchandler/master

Bugfix: filenames w/ special characters and permissions