Use pathinfo to get file extension instead of string functions
Merge pull request #52 from acidvertigo/patch-1

Use pathinfo to get file extension instead of string functions