Fix the process of retrieving an extension of a file path.

Add a function which retrieves an extension of a file path because `filepath.Ext` returns the suffix beginning at the final dot in the final element of path and we can not retrieve the extension of `foo.go.html` correctly (We want to retrieve `.go.html` as the extension but `filepath.Ext` returns `.html`). #14