Fixes #8483 by correcting the auto completion on windows added some test cases + fixed an error that were discovered when doing `using B<tab>` before Pkg.init().
Merge pull request #8693 from dhoegh/master

Fixes #8483 Windows completion error