Get the home directories in a less retarded way

God damn, what the hell were you thinking?
Confirmed non-C programmer.