Fix bug where window split would go to ~/

This is an issue on some clients where opening a new window
pane would open it in the user's home directory rather than
the current working directory.