Wrote a pathetic little function that will return the extension of a file or file path