Update scripts to build more recent older versions and fix issues with Riak 1.3.x