fixed bug for cask list
Updated Tee to avoid writeout before finished correctly
updated version