Rename script -> bin to work with Rails 4
Add a hack to guard against SSL errors