extract command name from commandline