Fix usage of echo flags (not POSIX).
Fix erronous use of printf.
Fix ask function printf typo.