Fixing an excess directory creation problem with the output.