use command to get tmp dir, don't assume