make sure folder paths in generator names are preserved (ALOY-546)