Improved the install script to ot rely on ip's any more.