Minor fix to create vardir if missing