Fix typo in getOutputOfCmd()