Fix for correct file name calculation on win

hardcoded file ext used (