Tidy up update script to be less execution-location sensitive, and to leave the cwd alone