Refactor release scripts to allow for snapshot releases