update script to allow run from normal users