Modified 'construct_extension' function to provide the dot.

This will need to be renamed later, but the motivation for this is to allow the scenario when an asset needs to modify the actual name of the path; such as images on retina devices.