Update for rails 4 support

This include a fix for detecting sprockets