Fix Modulefile diagnostic that appointed directory instead of file.