Strip filename if config.assets.manifest is defined

In the latest rails-sprokets, config.assets.manifest must be a full file path.
The filename must be stripped off to get the manifest directory.

Not sure if this provides perfect backwards compatibility. Is detecting the Sprokets version necessary?