Ensure output is fully written
remove mkdirp dep. fix all test and lint issues.

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>
Merge pull request #3 from joshuarubin/master

Ensure initFile is fully flushed