Simplifying deployment script to be idempotent.