I think it's possible that `len(paths) == 0`, e.g. with a custom module loader. In that case we should set `self.path = None`.