Smart(er) build script.