Set XDG_CACHE_HOME in .profile instead of .bashrc

Make sure it available for non-interactive
logins too.
When leaving the console, clear the screen