Fix mtree tmp template for non BSD versions of mktemp.