Jackson County director of corrections resigns amid problems at jail