Check cost-control installed state to embed it or not

@timdream r? 3 line fix...