Tell OS X Terminal about the current directory

So that, if the setting is enabled, new and restored tabs can open in the same directory.

Fix found via thanpolas/dotfiles-1@ee74a53c843

Fixes #54