fall back to pure R ailinkedfiles when perl script fails

* + test