Check is command is a str and replace by list before checking existence Closes #728 See merge request !898