Add Config.getDirectoryName() to check the last character of a directory in the
config and make sure it ends with an OS dependent slash. Prep to fix for #263.
Use config.getDirectoryName() for "tsd.http.staticroot" and "tsd.http.cachedir"
to make sure the directories end with a slash.