updated the init script to work with ubuntu