fix problems with new tar versions, closes #628 and #646