Fixes issues with file based CMS when themes are enabled.