Fix handling of relative ".." in haxe.io.Path.normalize (closes #3019). Also clean up temp vars.