Fixed correctness in stdio, minor changes in ls to handle dirs with negative sizes

UCC git Repository :: git.ucc.asn.au