When HdfsAtomicWritePipe closes the pipe, it renames the temporary file
to the final name, and tries to ensure the directory exists.  However,
it was not creating the parent directories correctly.