fixed method for identifying architecture i386/amd64