Be a little bit smarter about where the slapd directory is.

Most slapd directories are named after the hostname, which may be 'localhost', but is usually its actual short host name (not fully qualified).