prepare the app directory and download the runtime