Only add search option to resolv.conf if there is a search domain present

Minor modification to only add the search option to resolv.conf if there is one.