Fixed pathing issues with readFile and __dirname in Node builds.