Fixed "cylc db refresh" command.

Broken by the recent change to the reg db format - it would abort if a suite title had been changed. The fix also handles all allowed quoting forms properly.