Fix trailing slash removal code with root directory
Fix trailing slash removal code with root directory

mawww/kakoune,Somasis/kakoune,occivink/kakoune,mawww/kakoune,lenormf/kakoune,occivink/kakoune,casimir/kakoune,Somasis/kakoune,lenormf/kakoune,jkonecny12/kakoune,lenormf/kakoune,casimir/kakoune,danr/kakoune,occivink/kakoune,Somasis/kakoune,jkonecny12/kakoune,Somasis/kakoune,alexherbo2/kakoune,lenormf/kakoune,jkonecny12/kakoune,alexherbo2/kakoune,danr/kakoune,alexherbo2/kakoune,danr/kakoune,jkonecny12/kakoune,alexherbo2/kakoune,mawww/kakoune,occivink/kakoune,casimir/kakoune,mawww/kakoune,danr/kakoune,casimir/kakoune