#jeremycherfasZegnat Since I added the __DIR__ magic constant to my script, writing out to files stopped working. I am not seeing a good reason yet, but I thought I would ask whether there are some circumstances in which adding __DIR__ might be a bad idea.