Fix another bug with an empty root directory