Fixed error in pre-commit hook, was using os.getcwd()

Since I'm using the non standard core.worktree setup for these dotfiles
had a bug where the working directory was one folder above where it should
of been.