Fixing path passed to tar command