rdir: rename ls_dir to get_dir (reflects function)
rdir: type checking of root file names
rdir: add rdir tests