save last selected dir