FreeBSD compatible

Detect the OS and use gtimeout from sysutils/coreutils