Update working directory when creating new page in subdirectory

This fixes a bug where an empty subdirectory path was being passed to `index.update_working_dir` with the effect that new pages in subdirectories would fail to be checked out to the working directory. A subsequent `git status` on the wiki repository would report the new page as having been deleted.