scripts: add version_filter command to metadata.pl