fixing wrong output directory in afni base gen_filename

The changes of filename generation used names and not path, which makes afni interfaces to output in the folder where the input file is. This fixes at the afni level but it might be necessary to do it in CommandLine base interface.