[core] Add file name and line number to module loading errors.

This should make it easier to debug when the import fails due to some weird error deep inside some module.