(raw) do not crash when trying to guess homedir before running another process (mga#7403) (backported from trunk)