fix simplify method, when no source dir specified
dump diagnostic and stop on errors