added ruby code to improve cross-platform support for virtualbox host-only networks.