Support `require_relative` in config files.

Using `require_relative` in a config file leads to `cannot load such file -- ...` because of https://bugs.ruby-lang.org/issues/4487.

This overrides `require_relative` so that it works in config files.