fixed *nix/os x path compatibility