Add .htoprc
Update xterm configuration and ls detection code