Fixed #561 -- don't try to load both a directory if there's a path with that name