tool copydlldeps.py: function is_pe_file() must not fail on directories