Fixed duplicate calculation of app data directory.