Copy the whole app to tmpdir. Fixes #186