MOD: fixed issue #66 Unexpected token ILLEGAL with shebang #!

plato does not recognize a node.js shebang at the beginning of a JavaScript file, instead it throws the error "Unexpected token ILLEGAL" and skips the affected file.

Fixed the issue by commenting out the shebang line as followed:

// if begins with shebang
if (source[0] === '#' && source[1] === '!') {
  source = '//' + source;
}

This solution ist taken from complexity-report version 1.0.2