Use $OSTYPE to determine OS, not calls to uname.
Clear console if top level shell exited.