Fixed bug with init script when updating package