Fix bug when `cargo-contract` installation had been interrupted (#571)

8 jobs for master in 13 minutes and 22 seconds (queued for 2 seconds)