use require.main._compile and require.main.paths

closes #71