Added --release functionality to build tools