Support for setting base directory for relative file paths.