Always get the relative path to the config file

When running different scripts in the api directory, you had to be in
the api directory for the config parser  to find the config file
correctly. This will allow parent directory to be found based on the
file itself so you can run the scripts from wherever.