fixed to check for resolvconf on runtime