`copyAppFolder` is also implemented as an asynchronous function which you're calling synchronously.