fixed check for asset pipeline in rails 4