modified architecture detection as per http://support.microsoft.com/kb/556009