Make state data dir configurable