fix rendering resolv.conf if no 'options' are provided

this makes some changes to the cc_resolv_conf to make its
generate_resolv_conf method more easily callable (for future test).

Also sets it up so that 'options' is always defined when the template
is rendered.