Fix doubled dots in path_and_rename and add a test for it
As os.path.splitext
returns the file extension including a dot, adding an extra one is superfluous.
As os.path.splitext
returns the file extension including a dot, adding an extra one is superfluous.