Make memcached optional in test script