debian: Split original_artifact parsing out of resolve_revision_from
We will need it independently in a future commit