buildbot/buildbot — pull request #798 by SpecLad (2013-07-20 21:40:44+00:00)
Title: Fix buildslave init script errors saying "buildmaster"

Also, change `${i}` to `${index}` for consistency with surrounding code.