Fix off-by-one error in checking node version