[finish #47547449] fix escaping for deployment cleanup