removed thisdir for __dirname directly. I had this originally while troubleshooting a problem with npm link but it was unrelated.