Added DIR element as valid text token, fix for issue #8