merge diff_dir.sh and diff_dir2.sh