Redmine#4755: directory tagging fixes, always generate release_id

see https://cfengine.com/dev/issues/4755