Experiment to try supporting ksh.
Use $(id -u) since $UID is not available on ksh.