Use tee to split output only if available
Merge pull request #9 from rwz/optional_tee

Use tee to split output only if available