mkdir if the output folder is not fully prepared