Properly regenerate headers when generator script changed.