Fix an issue with the handling of the returned value of a bash command.