Added check for pdb writer before trying to emit pdbs

#732
"kpm build" shows detailed dependency information by default