Fix bug in release script