[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.
Merge pull request #301 from Therzok/redundantCheck

[Version Control] Optimizations to Commit Command.