Fix Path.toNativeString() for empty paths (was missing the ending slash).