Update rails to 4.0.4 and fix a dependency issue with sass-rails