Better tar substitution for mat 0.5.2

This pattern avoids side-effects on other files as well as remove a
couple instructions from the `install` function.