bufix: outputfilename should only remove the file extention (cutting of only the last '.' and the string that follows