DRY in build.sh