autoconf: Check if <paths.h> exists and set HAVE_PATHS_H