fix riak join script to retrieve ip from path