fix is_file warnings