Change output filename to be relative to input filename.