title: Permission denied error with phantomjs
body: <p>I am using Rails 4.0.2, Guard 2.2.4, guard-rspec 4.2.4, rspec-rails 2.14.0, Capybara 2.2.1 and Poltergeist 1.5.0 on Ruby 2.0.0-p353 and OSX Mavericks.</p>
  
  <p>When I run bundle exec guard I got a lot of failure with this error message : 
  An error occurred in an after hook
    Errno::EACCES: Permission denied - /usr/local/Cellar/phantomjs
    occurred at /Users/gillesmath/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/open3.rb:211:in `spawn'</p>
  
  <p>I checked the permission on /usr/local/Cellar/phantomjs and didn't notice  anything unusual. I can run phantomjs without 'sudo'.</p>
  
  <p>My spec_helper file look like this :
  ENV["RAILS_ENV"] ||= 'test'
  require File.expand_path("../../config/environment", <strong>FILE</strong>)
  require 'rspec/rails'
  require 'rspec/autorun'
  require "capybara/rspec"
  require 'webmock/rspec'
  require 'capybara/poltergeist'</p>
  
  <p>Dir[Rails.root.join("spec/support/*<em>/</em>.rb")].each { |f| require f }</p>
  
  <p>ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)</p>
  
  <p>WebMock.disable_net_connect!(:net_http_connect_on_start => true, :allow_localhost => true)</p>
  
  <p>Capybara.javascript_driver = :poltergeist</p>
  
  <p>I can't see what is wrong because the owner:group is the same for both the rails app and the /usr/local/Cellar/phantomjs dir and its content. </p>
  
  <p>Thanks for your help</p>