Fixed a few problems with rights and init script