Changes directory to the config file