See if we can extract a file name from URL or filepath