Fix working directory path for submodules

This was causing a problem where running 'gitx'
in a submodule directory caused the submodules'
index file to remain locked forever.
Merge pull request #5 from carlbrown/master

Fix worktree path when running gitx inside a submodule directory