Theme path handling

This fixes theme path overrides as long as the theme_path config setting is not set. 

If it is, then the setup will continue to work in the same way as currently.