fixed regression with rc.local
wait if installation fails