Update release script to make it more generic