Now changes to the directory of the config file so that relative paths are more predictable.