fix for when XML filename is not given with pathname
improve error message for flat tetrahedra