Fix real module attribute check for Target.