Introduce an artifact builder to avoid artifact conflict

Append a counter suffix to the file name if it exists

Fixes: 276881689
Fixes: 276357762
Test: atest FlickerLibTest:ArtifactBuilderTest
Change-Id: Ifb1dc8524d7513a15c664f13415531a5d106fbee
10 files changed