adding directory marking and jumping capability, w/ mac specific if statement

taken from: http://jeroenjanssens.com/2013/08/16/quickly-navigate-your-filesystem-from-the-command-line.html