Fixed upstream's broken targetless detection.