build script bugfix