Fix cmdline reading