Dump dot files for debugging

Dots are saved in ${CMAKE_BINARY_DIR}/debug/dots

Change-Id: I4c0b2a753a58df749b758dd6a0329b03ac87e172