Use strpos and pathinfo to check and remove file extension
Merge pull request #58 from acidvertigo/patch-4

Use strpos and pathinfo to check and remove file extension