fix forward_word to match bash readline