Added check to raise an error if escript_main_module cannot be loaded