fix weird "file not found" when $CFG->themedir enabled