make build script slightly more sane