dot/shell-rc: Only run tmpdir(1) if we actually found it.