Fix bugs with changing config.yml directory