Init script upgrade-related changes. - defaults to five loops one second each - loops and timeouts are configurable via defaults files - while at it, get rid of bashisms in variable substitutions.