Updated script to build releases