Improved require for external execution
Merge pull request #5 from AxelTB/FixRequire

Improved require for external execution