third_party:waf: fix a mis-merge - Utils.check_dir issue