i3: Made the cwd-term script work from the shell

Now it can be run as from the window manager, or from your current
shell. Both will work and have the same result.