Fixed exception being raised when looking for extra modules to load.