release modified to allow it to run under freebsd
additionally, removed all 'awk' calls in favor of internal Perl code