fixed bug in build script