ls-files: fix bug when recursing with relative pathspec