fix dataPath() for OS X and Java 7