fix issues where trailing newlines would fail marionette-mocha tests