return the extension of the file in the given path
path containing the filename and extension to extract
filename extension.
return the extension of the file in the given path