Fix privilege checking in installdate.sh