Adapt build script