Change return to echo in __check_config_dir