If a final '/' is used in --input then filenames in output are cut
This is related with directory support.