shell detach script, off by default