Add expand-file-name and minor code cleanup

Set all TeX variables in one command.

Use expand-file-name for config files.
Add setup.sh script