tweak theme css switch code, to make possible inject <link> with necessary style on page load
use sourceFilename as relpath if possible