Fix the testNotWritable test in TargetPanel.
Ensure to get the actual root directory rather than the root of the
Temporary folder. Temporary folder overrides the getRoot method.