Fix for theme_path setting. Fixes #995.