theme: fix expansion of ~foo where foo is no user