Base architecture off of erlc binary class in OSX
Base architecture off of erlc binary class in OSX

Like Solaris, OSX can have both i386 and x86_64 run natively
no matter how the kernel is compiled.  Using `uname` to determine
the architecture of the Riak package on OSX isn't correct on
OSX machines that report "i386" from `uname -m` but have Erlang
compiled for 64bit.

This method uses `file` to determine the architecture of the
`erlc` binary that will be in the path of the build since Erlang
is required to build Riak.  This way, the package architecture
will match the erlang architecture everytime.

laurenrother/riak,authbox-lib/riak,DavidAlphaFox/riak,GabrielNicolasAvellaneda/riak,xuejianhai/riak,glickbot/riak,yangchengjian/riak,basho/riak,elkingtonmcb/riak,amyvmiwei/riak,biddyweb/riak