Query the list of sources from output.source_map instead of guessing.