Fixed parsing cmd file