changed dirname
changed __dirname to process.cwd()
added .com