Fixing generation of diagrams (via 'make diagrams') when
 build tree is other than source tree.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>