Fixed a directory bug under *nix.