Deploy script fixes#3