Fixes regex which identifies directives

Previously xxexample.something would be identified as a valid instance
of example.something.
Fixes issue with throwing directive error

Previously, the error thrown when a directive class did not implement
the IDirective interface referenced an undefined variable.
Bumps version to 0.2.5