bug fixed. set "." to root_dir if old_rec_dir_path = ""