FileServer: added validation of --base-path; only existing directories should be allowed.

It makes no sense to set the server base path to that of a file or a directory that does not exist. These changes check for valid --base-path directories. When a --base-path is discarded these changes warn the user that the basePath is set to a previous value.