Handle error code -5 on directory queries (reported by hamaji)
Handle error code -5 on directory queries (reported by hamaji)

- a query on directory path containing '../' seems to fail with error code -5.

toyoshim/naclfs,toyoshim/naclfs,toyoshim/naclfs,toyoshim/naclfs,toyoshim/naclfs