[BZ 1096923] Enhance the vault detection code to avoid a timing issue on install for the first read attempt. This update also improves the granularity of the log and error messages.
(cherry picked from commit 8b13ca345e06e628c2dc4250a341f8a95ecd7e8b)