fixed script to delete deployment directory