Update loginscript

Tested on 10.6, 10.7, and 10.8.  Works at login window regardless of whether list of names or icons is enabled.  Mostly.