fixed portability

on some systems (e.g. Ubuntu), `sh` is mapped to `dash`, which doesn't
appear to support multiple expansion (`${tmpfile}_{1,2}`)

thanks to @hamiller for discovering this