Roughly based on what @gmr did in sprockets-postgres... still not sure if the explicit `if` guard is necessary.