fix bug of not setting variable in case of cmd error
fix bug of not setting variable in case of cmd error

Signed-off-by: Tiago Natel de Moura <048eb700433c5b6ad7798951e7d0c556b86ff1c4@neoway.com.br>

NeowayLabs/nash,NeowayLabs/nash