Add directory listing under Linux.
Fix dir-linux to actually keep the offset.