fix for tempfiles generated by zsh (and EOF terminated cat and such)