correctall & cdpath for MacOS