commandline interface: code cleanup
commandlieninterface: fix file patch (hunk) creation for reverse applies