Start COMMAND, and kill it if still running after DURATION. Based on GNU timeout from coreutils. Ported to Perl so it is available also for other Unix systems, for example for shell scripts that need timeout and need to run on both Linux and FreeBSD. Was tested on Linux and FreeBSD.