Backport fix for rpm and deb init scripts

Fixes basho/riak#306 backported to 1.3