Create the homedir last to avoid symlink issues
Create the homedir last to avoid symlink issues

If the homedir is on a symlink (say /home -> /var/home) but the homedir
is in /home, then we shouldn't create a directory in /home because
then the symlink creation will fail. Instead we move the homedir
creation to the end, where we will create it in the symlink if needed.

This should fix https://github.com/flatpak/flatpak/issues/493

flatpak/flatpak,flatpak/flatpak,GeorgesStavracas/flatpak,handsome-feng/flatpak,GeorgesStavracas/flatpak,matthiasclasen/flatpak,matthiasclasen/flatpak,GeorgesStavracas/flatpak,matthiasclasen/flatpak,handsome-feng/flatpak,handsome-feng/flatpak,handsome-feng/flatpak,GeorgesStavracas/flatpak,flatpak/flatpak,GeorgesStavracas/flatpak,matthiasclasen/flatpak,flatpak/flatpak,matthiasclasen/flatpak,flatpak/flatpak,handsome-feng/flatpak