load user-required files from their own directory

If a required file includes other files with relative paths, we need to
be in the same directory before requiring it.