fixed problem if filename is None in bin/fix_filenames.py