Added check for bc, fall back to perl.
Fixed case problem in vgs unit output.