Fixed mistakes in build script