Fixed IsOnlyBuildTarget returning wrong value