Ensure that the root path is never marked as hidden

This is patch 1/2 to fix the issue I reported in #270.

Note that #289 does not resolve the issue except in a very specific case. I believe that this is a more generic solution.