Fixed automated build scripts