Strip suffix when auto-creating selectors from paths