Generator: unify output folder detection and/or creation 2