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 reporter_name="Julien DUSSER"
2 reporter_url="http://sourceware.org/ml/crossgcc/2008-10/msg00054.html"
3 reporter_comment="Soft-float for the 405 PowerPC"