sagedev.py: fixed uninitialized tmp_dir method