Remove spagetti code for libr/util/sys.c