Fixes creation of null directory at root level during a test run