extract_conditions_from_paths function

Extract all unique conditions from paths