Avoid command infinite loops

PR directly against the source branch, instead of into release-0.10.0 as in https://github.com/learningequality/ka-lite/pull/567