Skip non-dll files when reading PE metadata

@davidfowl , flipping the revert https://github.com/aspnet/KRuntime/commit/50cb63a09d3cdba26e650a1006d80cf1b988495b

Also fixing #781