Fixed reference to data file directory

Data file directory was not always correctly found. Fixed by getting
the process directory