Set up output folder and cmd line