Fixed failures in PathChooser._paths_by_category()