fix bug in ob-sh when dealing with list variables