convertCommand now generates correct path strings