Give the right extensions to the files