[gui/AppBackup] clean up runCmd:withArgs: a bit and reuse the NSRange