Changed the open_terminal command to create a temp script for executing commands to make comapable with gnome-terminal, urxvt, xterm etc