fix pat-expandable to detect folders using injection