split-up update script to remove the shared folder and add unit tests for it