repair tar command for some versions of tar

The previous pull request broke some versions of tar which rely on specific ordering of options.
This commit fixes this issue.