Change logic for finding data directory

Closes #95