[PATCH 46/47] kdump-logger.sh: make it POSIX compatible