Fix stylesheets loading in pipeline mode. Ref #348

Workaround for pipeline mode which doesn't support `@import` directive in stylesheets.

Fixes #348