Using non-local mode in inline mode when executing steps

Fixes #851