Uninformative error message when failing to create subdirectory
If MOD file is .mod, CheckPath.m tries to create a directory called . If there already exists a file (not a directory) with that name (i.e. the same filename than the MOD file, but without extension), Dynare crashes and the error message is not very informative. A more explicit message should be displayed.