Make sure file is not a directory before running readFileSync
Merge pull request #2 from horte/master

Make sure file is not a directory before running readFileSync