Delete tmp config file (if it exists) before creating new one.
Copy appDir to tmp location without client-side package files