Added RC check to per-target scripts