scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.
Call to get the directory mode depending on $CT_SYS_OS
yann.morin.1998@anciens.enib.fr:
CT_SYS_OS has changed on Linuxsystem, it only gets the kernel name "Linux",
and not the system name, 'GNU/'.
1 http://sourceware.org/ml/binutils/2007-07/msg00401.html
2 http://sourceware.org/bugzilla/show_bug.cgi?id=4970
6 @@ -5601,6 +5601,7 @@ case "${host}" in
7 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
8 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
10 +RPATH_ENVVAR="cant_touch_this_nah_nah_nah"
12 # On systems where the dynamic library environment variable is PATH,
13 if test "$RPATH_ENVVAR" = PATH; then