Better config loading

fscanf is not for userinput. Time to stop being lazy and using it as
such