Fixes potential issue with themed configs and dir_paintings.