remove trailing `_` from dir names and make lowercase