Update script fixed to correct CWD.