Use -t instead of --tempdir for compatibility with MacOS/BSD