updated default conf removal to work in debian + rhel