script: fix wrong exit location