Preprocessor command to generate filename

Adds a possibility to use an external program to generate a filename for a recording.

Uses the same format as the post-processor command. Filename should be written to standard output. Possible trailing '\n' is ignored in the filename but no other safety checks are made. If the external program fails or writes nothing, filename is generated by the basic internal method.