Bug Fixes

Rails.env
Don't attempt to use cert file if it doesn't exist