providers: linux: avoid division by 0
builder: better argument/exception handling