Fixed failed locating of config.cfg while rerun