Make sure to create the output dir