Change the logic to check the native image with ildasm