Fix nested tarball import

Fixes #298
Merge pull request #299 from po1/fix-nested-import

Fix nested tarball import