Dynare.m couldn't be cleared because it contains MATLAB code

Saw an old thread with the same issue (Strange warning message).

If run the file with the noclearall option, I get the following warning message:

Warning: Name is nonexistent or not a directory: /usr/lib/dynare/matlab/../mex/matlab 
> In path (line 109)
  In addpath (line 88)
  In dynare_config (line 173)
  In dynare (line 56)