test for existence of files but only if it is not a remote resource