Updated code to only run resolvconf reconfigure once