made renumber.sh safer