remove arguments from commandline after processing (at least in linux, to prevent password in tasklists)