fix bug in directory for *nix