Refactor the CAINTEOIR_DATA_DIR logic to use a path API.