using $env:release_build to determine whether build is for pre-release