Move create_temp_directory from .profile to zsh

lightdm executes a login shell as user 'tom' that borked upon seeing the
function in ~/.profile (presumably the shell is dash, which doesn't
support functions), which broke login