Improve relative config path handling.