Automatic file source lookup