Fixed a bug in he MGCB intermediate output folder creation