Allow multiple instances with different port offsets in the init script

Review 713 by @mlucy
Closes #1126