Replaced tempfile with mktemp to make compatible with minepeon (ArchLinux)

As suggested in some forums on the web, tempfile is replaced by mktemp. tempfile gives "command not found" on latest stable version of minepeon