Fix editing of init script when running as a user