Improves Modulefile diagnostics