CORE-4755: allow the output folder to be changed for foundation API apps