shlib.sh: add -i option to tee command