set application data directory permission when created