pki: update POSIX sh compatibility

Change-Id: I3ae7b6a9d88b87d134676acbd216a075bbad76f8
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>