run-*d.sh: support $SHELL values other than bash