Ignore trailing whitespace at end of directives.

The right-hand side of directives in Cainteoir files (dictionaries,
phoneme-to-phoneme maps, etc.) should ignore trailing whitespace.