Improve platform portability

Replace read -p with an explicit echo and simplified read.

Replace touch with echo and redirection.