Create the output directory if it does not already exist.