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 #8885 from dhoegh/backport_#8693

Backport of #8693 to 0.3