Create state directory if missing