last: fix one bug and some minor issues

Also see discussion "last: please review -F and --time-format" on mailing list.