patch to resolve issue #137 - the output path can be a file name if the format is not ALL