Update init scripts for OS X and Linux