Fixed minor bug with mac hostname resolution