Fixed bug with getting info on non-readable dirs.