beautified construction of output filename