fixed IsBinaryArtifact() bug