copy the app instead of linking it

adding some traces before copy to diagnose invalid file content
Merge branch 'jonas'