Use the state directory instead of /tmp