Refactored CheckUsingDirective(...) to not use regex