move framework packaging code to build-libssl.sh

because it's impossible to figure out how to get maven to run the two scripts serially.
change the cleanup dir