make ui use new DATADIR and DOCDIR values coming from new configure
simplify subsituting configure values
make use of new DATADIR and DOCDIR variables in rc files
small fixup