Fixed bug with running full build scripts during publish.