TomA: clean up build script