Fix check-metadata option

The option did appear on the configuration but wasn't used at all.