considering RAILS_ENV too in dump removal