fixed cwd handling within injected require, fixed error line report