Added helper function to get the proper path to a configuration file