Match beginning and end of string, not line.
Add test for unknown directive.

This also fixes the usage tests which failed in silence.