catch and display all errors and fix linux compatibility

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