Add cd logic to build scripts so they're "safe".