Use mktemp to create temp directory