updated check_memcached_write.pl