Fix worktree path when running gitx inside a submodule directory

This was causing a problem where running 'gitx'
in a submodule directory caused the submodules'
index file to remain locked forever.