Make agent init script able to launch multiple instances