Rename directories after the packages they contain