force tty allocation when numproc <= 1
dsh-pkg: force tty allocation when numproc <= 1
small, unnecessary changes
ensure no duplicates in range

There already never should be any duplicates in a range, but you never
know