bugfix: determine data directory