local: Update browse cache code to add all directories

Tests have been updated to make sure multiple folders are added. We had
forgotten to add child folders to the ones that had already been created.