Fix broken parsing

Using `\n` as a separator for the pane id of the created window
does not work for me, not sure why. Replaced it with `:`, and 
parse it with a `tr` in the next line.
revert 2 commits
Merge pull request #2 from myw/patch-1

Fix broken parsing
fix bug