[FixRM:#8127] - Remove junk code that checks ARTIFACTS again

ARTIFACTS uses OptPath, which already checks the path. We don't need
to do this again.
Forgot to change var 'filename'
Land #2062, @wchen-r7's fix to avoid redundant check