[examples] fix posix shell bash not dash for Ubuntu