Correct the sources of glob imports

Closes #8847