diff --git a/src/cli/args.js b/src/cli/args.js
index <HASH>..<HASH> 100644
--- a/src/cli/args.js
+++ b/src/cli/args.js
@@ -33,7 +33,7 @@ module.exports = {
         alias: 'f',
         type: 'string',
         default: 'flow',
-        coerce: value => value.startsWith('./') ? path.resolve(value) : value
+        coerce: value => value.slice(0, 2) === './' ? path.resolve(value) : value
       })
       // --type text
       .option('type', {
diff --git a/src/report-html.js b/src/report-html.js
index <HASH>..<HASH> 100644
--- a/src/report-html.js
+++ b/src/report-html.js
@@ -66,7 +66,7 @@ function copyAssets(outputDir/* : string */) {
 
 function renderHTMLReport(opt/* : Object */) {
   if (opt.filename &&
-      opt.filename.includes('..')) {
+      opt.filename.indexOf('..') >= 0) {
     return Promise.reject(new Error(
       'filename is not relative to the projectDir: ' +
         [opt.projectDir, opt.filename].join(' - ')
fix: fixed minor node <I> incompatibilities