change haxe.io.Path.removeTrailingSlash to removeTrailingSlashes
remove trailing slashes on FileSystem.exists (closes #2577)