Fix with generation of .pubcert file

"echo > $PUB_CERT" creates an empty first line, which is not exactly
correct and breaks some other logic (e.g., with ccnnamelist)

Change-Id: I0982046e101f71d34dc6fc4b3f25638427b8bfa8