Smartcase in the tab completion

Thanks to Martin Canaval for the tip.
http://stackoverflow.com/a/14350512/823869