Problem with this is that variables are allowed to be blank.
e.g. RELEASELINE can is set to the empty string for a proper release and -rc for an release candidate.
PR