Add require function to repl
Fix issue when running script from another, fix missing debug info for entry point