build: fixed the build script to correctly evaluate the CanPush

property.