difftool: use perl built-ins when testing for msys