fixing build script errors