Use elixir tmp directory instead of /tmp, closes #2849