simplify Main.Base initialization and fix #7245 in the process
Merge pull request #7266 from JuliaLang/jn/base_clean_reinit

simplify Main.Base initialization and fix #7245 in the process