Trim filepaths in require directives. Fixes #3