Updates storagedriver tests to better test directory trees

Replaces random flat file names with random nested file hierarchies, and fixes the inmemory and filesystem drivers after uncovering some bugs with these tests.