Retry after failure of quantum commands in post_install recipe

It seems they sometimes fail, but probably because of a race. We retry
five times, waiting 10 seconds between each retry, in case of failure.