Fixed update tool

Fixed file existence check on line 5, moved the ./clean and ./do
actions back into the update script instead of hard coding it into
another shell script