mktemp works differently on OS X

While trying to instantiate a local copy of the stacks-website, I discovered that `mktemp` works differently on OS X than on Linux. This fixes the `latex.sh` scripts so that `make tags` works on OS X, too.