fix trailing slash check for Windows
Merge pull request #139 from krisselden/fix-trailing-slash

fix trailing slash check for Windows