env: make it compatible with POSIX shell
env: use TMOUT only when root