loader.c - use strtonum in two functions

Needs to be tested!