Cleaned up the get mac addr routine.