fix rm internal command full path name didision to path part and file name part to proper use of fnmatch function