modify join script to wait for riak_kv service to be running