Fixed issue with deploy script doing repeated builds.