[Version Control] Make the commit command check accurate.

Before it would always show the Command as valid.