Rename variable path to workingPath.

Rename variable path to workingPath in function getCommitForDir to avoid
naming collision.