fix docs for dir option