Fix PE detection.
Merge pull request #11 from nanliu/pe

Fix PE detection.