report error instead of crashing when magpie can't find "core" module in repl