collect: bugfix to not symlink yourself done right

* Using a FakeApp to not interfer with the real app. The previous fix
  was unsetting the static_folder globally.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
deposit: fix for flag checking

Signed-off-by: Jake Cowton <jake.calum.cowton@cern.ch>