Fix configuration file path handling

Previous revs of the script did not correctly handle configuration
file paths outside the current directory.