Allow digests to also work for Rails 4 where the manifest files is a json file.