Unify build scripts