Better output filename detection.
Better prefix and suffix for the lilypond output.