Added logger option and forced deletion of template directory if previously unused during current build
new version!