fix the first time can't create app folder if user define app dir not exists;

fix the first time can't create app folder if user define app directory
not exists;