Update pubnub.rb

Use Rails.root instead of tmpdir