Set cwd for git log when determining version info

Change-Id: I0d189d7469d818497ff797a8b2c68f8295af973d
Merge "Set cwd for git log when determining version info" into production