Fixes #4635: possible race condition in rudder-init.sh