utilize dirname/basename to let tarwriter set the correct path, instead of artificially setting it
include top-level parent dir entry into tar
check to ensure extraction directory exists
Merge pull request #389 from continuuity/feature/data-tar-fix

Feature/data tar fix