to check git commands thru perl