Add support for remembering directories