using require-like to make require work in sandbox and injecting __filename and __dirname as well