Change factory reset to use compiled app
Add file generating to factory reset script