Fix syntax to make it compilant for latest icinga2 release