Changed assets prefix code in engine.rb

Look in cached_dev only in development environment, instead of every environment except production.
Merge pull request #209 from isaacfreeman/1.0.x

Changed assets prefix code in engine.rb