Changed implementation of option checking to use a fixed whitelist of supported options rather than pattern match.

This makes it much more robust and will not pass parameters that are not supported or handled by the plugin in a different way.