Detect the arcanist filetype from the location in /tmp/.

This a) won't be portable, and also may match files not created by
arcanist, but the chances are probably pretty low.