fix casperjs install on OSX