Fix bug where file.Create() would fail if directory didn't exist.
Fix bug where file.Create() would fail if directory didn't exist.

In particular, this fixes a bug where commit fails to create the
reflog the first time a commit is commited in a repo. file.Create()
will now create the directory if required.

driusan/dgit,driusan/dgit