Filter dyn_local_file_for for the same file extension as the original.