handle file not found in safe_cmp