Fix issue in R < 3.0.2: list.dirs was not returning basenames only (ter)