fix broken sysconf when correct value is -1