Use path of executable for resolving data directory. Don't assume . is it.