Ubuntu mktemp needs X's on the end of th temp file