Added prefix of Cwd library to cwd method.
Fixed behavior when destination is a file instead of a directory
Changes in main file, due some (failed) tests on Tikz externalization
Fixed representation problem of dot2tex + newer versions of graphviz