[Build] Set revision to 0 outside source control

This ensures that properly built packages take precedence to incorrectly
built packages.