Using self.getStateDir
Fixes