Fix bug in Path.join(...)

I've added some unit tests which failed and fixed them. (e.g. join(["", "dir1"]) shouldn't return "/dir1")