Use @catch_config_error to catch exception from getcwdu in nonexisting directory