treat "." and ".." as special cases in haxe.io.Path (closes #2956)