Fix runCommand() when opts is an Array