better method for finding home dir