run-*d.sh: fix --shell support when interrupted