minor: Refactor build scripts