server: specify optional directory in ROOTDIR
Remove directory hierarchy test code