Previously, this function could crash upon encountering
some non-osd files such as `ceph.client.crash.keyring`.
Copy the logic from `find_filestore_osds()` to be more correct
for finding the ceph osd directories.
Closes-Bug: #2072920
Change-Id: I632008b10cfb7f667163c9381ae48432cbd65547