Update bench.sh

Added support for node determination.