set agent argv[0] to the full path