echo-sd: Make echo portable