Home directory finding function works