Changed TERM variable because rxvt doesn't play nicely with SSH.
Added missing hashbang to capsesc.