Use URI to test for file path rather than checking whether or not the file exists.