Fix bug when user data directory already exists.