Creating home directory finding function