Changed git direct calls to ruby gem