Fix tps.config.interpret_shell_line

This fixes a couple of small bugs I found while writing unit tests for `tps.config.interpret_shell_line`. (See #53.)