Take care of case when invalid target is specified on command line.