slightly smarter release script