1. In case there is no output filename specified the input file name's root is taken appended with the output extension for output as a fallback.

2. Fixed interpreting output filename tags when the line does not start with the output file name