wrap markup detection in a `before_configuration` block
fix typo in test, ensure no caching in precompile test
use `app.assets.register_engine` so we don't have to require sprockets directly