stat file before attempting to open
Merge pull request #200 from jquadrin/master

stat file before attempting to open