Fix ASI rules for directives. Fixes gh-1906
Merge pull request #1912 from caitp/issue-1906

Fix ASI rules for directives. Fixes gh-1906