allow env.shell to be a python-format-string

this allows env['shell'] to be a format string, which is very useful when using containers to run commands such as
'echo "command && exit" | nsenter ...'