Bit of a hack to fix bug with output folder path.