Improve cylc.version logic