Add basePath arg

If I want to tar files at `/path/to/some/dir/` and I want the tar file start at `/path/to/some/`,but the result is start at the project path.

So I add `basePath` arg for this issue.