Fix bug in testfs dir extraction.