Added check for trailing slash in file url and path

Resolved bug 5116. Also updated comments in example config file to
reflect that the paramter should be case sensitive.
Merge pull request #21 from TriptiSharma/dev

Added check for trailing slash in file url and path