kfreebsd - ignore empty environments

The freebsd specific code does not handle empty string in environment
correctly. Fix submitted by Petr Salinger.