improve pick-dir command