Fix opening block devices (S_IFDIR wtf)