modified man-function to work on OSX