minor fixes in libshardcache

(the 'add' command now works properly) + perl bindings have been updated