Fixed dependencies and permission problem on init script