riak: use REBAR_BASE_DIR variable to get the correct build artifacts
riak: use REBAR_BASE_DIR variable to get the correct build artifacts

Also riak needs libpam in order to build. Its configuration scripts does
not have an option to disable it.

joaohf/meta-erlang,joaohf/meta-erlang