Avoid the race conditions in init.ps1.