Fixed bug - edge case in which the tar contains only the contents of a dir, without the actual dir
Added a new test case to catch this bug