#Fix the bug that the directory open button should be disabled when the
directory is missing.