Added tee.
Bug fix - cp crashes if the destination exists and isn't a directory.