Fixing bug in fakeDir. It was using path.dirname in a HTTP url