Fixes:

* Corrected handling of spaces in file names
* When there are 2 candidates '/dir/Documents' and '/dir/Downloads' then j
  doesn't display 'cuments' and 'wnloads' on tab completion but the whole
  directory name after the last '/'.