[Version Control] Optimizations to Commit Command.

Replaced FindMostSpecificParent algorithm with a non-recursive root common root
algorithm.
No longer do recursive directory checks for single files.
Commit Command test run is now accurate.