Fixing the extraction problem

Due to the no fixed guidelines on how content in an ePub file should be arranged, in many cases,in  files with content in subdirectories could not be extracted as those cases were not covered. The new code should not leave any corner cases.