generator: make folder structure multi-spec friendly