add Git.command? and safeguard on git subtree rspec

Signed-off-by: Sebastien Varrette <sebastien.varrette@uni.lu>