Make get_cmdline_cword function customizable

ref #80