Check self.sources[0] and not dirname.