check existence of /usr/local/* instead of just /usr/local to prevent directory not found warning from ld