Fix bug in when setting File statedir
1.0.2