Fixed directory listing on *nix; other minor improvements.