Fixing generation of diagrams (via 'make diagrams') when build tree is o...

...ther than source tree.

hi there Martin, 
this is a simple patch for allowing generation of diagrams when building in other directory than the root dir of nanomsg. 

Thanks!