fix some device has no tempdir problem。 fix #1