Added fix for input and output folder