Fix update script so it will work when run in a path with spaces