Fixed missing file extensions on assets with . in names

Assets using a dot in their names did not have the file extensions applied. e.g. jquery.min did not get translated to jquery.min.js, since the extension was assumed to be .min and therefore not empty.