Update check_paths utility [ci skip]