Allow passing -d when running shell_buffer.py tests