Safety check in build.ps1