[FIX] check for trailing slash
Merge pull request #35 from iAmShorty/trailing-slash

[FIX] check for trailing slash