Directive parsing performance improvement

- test for existence of separators first before matching expensive RegExps