Make git-prompt work on cd.