Revert std::getenv usage; set better slice length estimation by default instead