updated prune ebs script