build: refactoring stale build scripts