Update autocert.sh

fixed tr and echo for new platforms