Some other minor changes as well.
At the moment this does not work with ubase login(1). We should add support to login(1) to write the lastlog entries. Minor modifications by sin.