Remove support for old-style header lines

* require the new form
* enforce that the cask name (per the header) must match the filename
* fix old-style header line in test suite introduced in #7432