Fix arg validation and pattern matching in "compendium_script.rb"