Allow overriding the spool directory via environment variable

This is primarily for testing purposes.

Signed-off-by: Sharif Olorin <sio@tesser.org>