Change extension pointer if there no extension.

Now the file.extension point to the end of file.name.