Logic fix for --cycle with a cycle time specified.
Added comment and tweak to logic.
Merge pull request #504 from arjclark/rose-task-env-cycle-bug

rose task-env: fix for --cycle with a cycle time specified.