fix 'echo' portability issue

maybe 'prinft' should be used instead though