This is a subtask of #111 and relates to the issue-111-update-command branch.
At present the update command deletes the folder and then uses the download_bee_callback() function to re-download the module. If there is a connection issue to GitHub then this could break the site. There is a higher risk of a download failure if multiple projects are being downloaded in close succession.
We should use a temporary folder and check that it is valid before replacing the code.