Fix 19380

This changeset implements some minor fixes to improve the support for MONO_PATH, in particular for relative paths.