Deploy script fixes#4