Added option to use only free filenames and append a suffix to the given filename if it exists already