Add some free(1) implementations for FreeBSD
Pure shell version of the Ralf's script
Fix noticed overflow bugs (use intmax_t via "expr -e")