add FileSystem.exists test with trailing slash