couple fixes

broken config script for 4.x
comparing strings to ints apparently not ok