set agg backend before importing pylab

see here:
http://matplotlib.org/faq/howto_faq.html#matplotlib-in-a-web-application-server

closes #163
properly clear cmake cache for scallion when using --tor-prefix

closes #161
check path attribute contents point to valid files

closes #158