fix rm file processing if only file name without path and with wildcard is specified on cmdl