added call to os.chdir if os.path.curdir is not the top level dir

Without this, if the application.py is launched from a directory other than the directory housing application.py, you will receive a large traceback based on IOErrors.

Namely call from rsted/html, line 34, in rst2html

it cannot find the var/themes/template.txt file