Use os.TempDir() instead of "/tmp" for Jenkins.

Change-Id: I84ba8c77bb1767f930ed010627da560f384aa03b
diff --git a/runtimes/google/vsync/kvdb.go b/runtimes/google/vsync/kvdb.go
index 04d18cb..7efefde 100644
--- a/runtimes/google/vsync/kvdb.go
+++ b/runtimes/google/vsync/kvdb.go
@@ -148,7 +148,7 @@
 		return nil, nil, fmt.Errorf("invalid DB filename %s", filename)
 	}
 
-	fdesc, err := ioutil.TempFile("/tmp", prefix)
+	fdesc, err := ioutil.TempFile("", prefix)
 	if err != nil {
 		return nil, nil, err
 	}
diff --git a/runtimes/google/vsync/vsyncd/main.go b/runtimes/google/vsync/vsyncd/main.go
index fd12a7a..a2ca5a9 100644
--- a/runtimes/google/vsync/vsyncd/main.go
+++ b/runtimes/google/vsync/vsyncd/main.go
@@ -3,6 +3,7 @@
 
 import (
 	"flag"
+	"os"
 
 	"veyron/runtimes/google/vsync"
 	"veyron2/ipc"
@@ -16,7 +17,7 @@
 	peerDeviceIDs := flag.String("peerids", "",
 		"comma separated list of deviceids of the vsync peer")
 	devid := flag.String("devid", "", "Device ID")
-	storePath := flag.String("store", "/tmp/", "path to store files")
+	storePath := flag.String("store", os.TempDir(), "path to store files")
 	vstoreEndpoint := flag.String("vstore", "", "endpoint of the local Veyron store")
 	// TODO(rthellend): Remove the address flag when the config manager is working.
 	address := flag.String("address", ":0", "address to listen on")