now respect 'smartcase' option, offered by lambdalisue in #4