Make dirPathForDocument send a correct dirname value
Add dirpath values to sidebar