catch and display all errors and fix linux and osx compatibility

fixes dotcypress/GitHubMarkdownPreview#9
fixes dotcypress/GitHubMarkdownPreview#10