Fixed bug when exec command fails and it is supposed to be returning the value