s4:param: add "state dir" and "cache dir" options