Rewrote the ubuntu init script to be more clean and use correct ubuntu methods