Added conditional to check for the admin homedir/uid before trying to add a host