bugfix: cd to the working directory before issuing git commands