Use git's -C option instead of cd