Fix getArtifact script