Insist that install -d works, and have mkdir -p fall back on that.