fixed automated build scripts