Refactor dev build scripts.