Fix buildslave init script errors saying "buildmaster"

Also, change ${i} to ${index} for consistency with surrounding code.
Merge branch 'slave-not-master' of git://github.com/SpecLad/buildbot