Fix non-detection of end of $() construct in sh.lang