fixed bug with mktemp on centos