Fix file name insert if there is . in the name

There was a small problem If file have `.` in the name it did not take full name but only part from last `.`

To produce error upload something like `com_cobalt.v.8.987.zip` then only `987` will be taken as the name.