applying https://github.com/rails/sprockets-rails/pull/36 to a current fork