Use getconf LONG_BIT instead of uname -m