Make the assembly scanning a bit more robust, currently dies on .dll.config etc

Bit of a pig to write an automated test for but it probably works