Use config dir for non-temporary writable files

This is also a (partial) fix for issue jasperproject/jasper-client#119