Added portable way to stat files for testing under travis-ci