detect files from cwd if File has cwd