Fix perl templates, add support for ellipsis prefix to queued-message, automatically create directory for new files.