Fix crash when trying to rahash directories