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.