Updated commit script so test failures cancel commit