fixing build scripts