Fix & improve project sample copying, fixes #245

Fix race condition on boot and improve robustness of copying by being
less brutal (not deleting .git and .gitignore files …)