New way to get home dir; added sudo check for util