only use /dev/shm if it's writable