cd in subshell

Make sure GIT_DIR=. remains correct in outer shell.

fixes #57