Use correct path to do attribute check. Refs #777