Change driver detection for ubuntu

If the hostname is change driver detection breaks
currently only change it for ubuntu since I don't have angstrom BBB to
find a better way to auto detect the driver