echo -n doesn't work on scripts, change to printf