Fixed init script to work with chef properly