Fix #704: Fix CLI assembly script to support Milestone and RC releases