Fixed issues in pkf generate and pkf init commands