Improved generality

- check that the directory exist in a system-agnostic way
- better `getCSV` function using httr