I don't understand "shouldn't be referencing riak_kv" ... there gotta be some way of figuring out if this riak_core app is bundled with riak_kv.  I'm peeking at OTP env vars to see if we're bundled -- oughtta work inside or outside Riak, am I forgetting something?