[ET Trac] #2532: try and auto-detect "system" directories to strip from THORN_INC_DIRS and THORN_LIB_DIRS