Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf