Use a platform independent method to detect 64-bit

dpkg is only available on Debian. uname should be available on most all modern Linux distros and OSX.