renaming places cursor at start of extension

I created a command that automatically places the cursor just before the file extension as I found that I rarely have to modify extensions.