Tidy up argument parsing in release email script