Replace an echo with a redirect
remove mktemp dependency

Closes #103