Change method of detecting 32 or 64 bit

now identifies build type by device