Fixing the issue with the terminal #5

This should fix the problem with split panes and getting the last session from iterm.

For some reason there seems to be a weird handling when it comes to adding new sessions to iterm and then accessing them. If you first activate the app and then directly fetch the last session it works fine when I tested it.