Have mig find mktemp to avoid path issues

 - On some linux distros, mktemp is located in /bin, use the 'which' command to find the absolute path of mktemp.